<?php 
	//include("html-includes/common/carousel.php");
?>


<div class="col-md-12">
	<div class="row">
		<?php include("global-includes/breadcrumbs.php"); ?>
		<div class="col-md-12" id="accountContent">
			<h3 class="sectionTitle"> <?php echo $page["name"];?> </h3>
			<?php echo $page["description"]; ?>
			<div class="clearfix"></div>
				<form id="registerForm" class="form form-horizontal" method="post">
					
					<div class="col-md-6">
						<div class="row">
							<h4><?php echo  translate("account");?></h4>
						</div>
					</div>
					<div class="clearfix"></div>
					<hr />
					<?php if(!isset($client["id"])): ?>
						
						<div class="col-md-12">
							
							<div class="form-group">
							    <label for="email" class="col-sm-3 control-label"><?php echo  translate("email");?></label>
							    <div class="col-sm-9">
							    	<input type="email" class="form-control" id="email" name="email" placeholder="<?php echo  translate("email");?>" />
						  		</div>
						  	</div>
						<div class="col-md-6">
						  	<div class="form-group">
						  		<label for="password" class="col-sm-3 control-label"><?php echo  translate("password");?></label>
						  		<div class="col-sm-9">
							    	<input type="password" class="form-control" id="password" name="password" placeholder="<?php echo  translate("password");?>" />
							    </div>
						  	</div>
						</div>
						<div class="col-md-6">
						  	<div class="form-group">
						  		<label for="confirm_password" class="col-sm-3 control-label"><?php echo  translate("confirm_password");?></label>
						  		<div class="col-sm-9">
							    	<input type="password" class="form-control" id="confirm_password" name="confirm_password" placeholder="<?php echo  translate("confirm_password");?>" />
							    </div>
						  	</div>
						</div>
					<?php else: ?>
						<div class="col-md-3">
							<div class="form-group">
								<label><?php echo  translate("email");?></label>
						  	</div>
						  	<div class="form-group">
								<label><?php echo  translate("password");?></label>
						  	</div>
					  	</div>
					  	<div class="col-md-5">
					  		<div class="form-group">
							    <span><?php echo $client["email"]; ?></span>
						  	</div>
						  	<div class="form-group">
							    <a href="#" title="" id="changePassword"><?php echo translate("change_password"); ?></a>
						  	</div>
					  	</div>
					  	<div class="clearfix"></div>
					  	
					  	<div class="col-md-5">
							    <a class="btn btn-primary btn-md" href="#" title=""><?php echo translate("administrare_cont"); ?></a>
					  	</div>
					  	
					  	<?php if($settings["thankyou_value"] > 0):?>
						  	<div class="col-md-4 rewardPoints">
						  		<h4><?php echo translate("reward_points")?></h4>
						  		<div class="points"><?php echo $client["reward_points"];?></div>
						  		<?php if($client["reward_points"] > 0):?>
						  			<?php
						  				$rewardValue = $client["reward_points"]*$settings["thankyou_value"];
										$rewardValue = makePriceInterval($rewardValue, 0, $settings["currency"]);
						  			?>
						  			<div class="pointsValue"><?php echo translate("your_reward_points_worth"). "<br/><span>". $rewardValue."</span>"; ?></div>
						  		<?php endif; ?>
						  	</div>
					  	<?php endif; ?>
					<?php endif; ?>
					<div class="clearfix"></div>
					<hr />
					
					<?php include("html-includes/common/account-form.php"); ?>
					
					<div class="col-md-4">
						<button class="btn btn-default btn-success btn-lg pull-right"><?php echo (isset($client["id"]) ? translate("update_account") :  translate("create_account")); ?></button>
						<div class="clearfix"></div>
					</div>
				</form>
		</div>
	</div>
</div>
